package me.zhengjie.modules.member.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang.StringUtils;

import java.util.List;

/**
 * @author QF2019
 */
@Data
@NoArgsConstructor
public class EmployeeSavDto {

    @ApiModelProperty("ID")
    private String id;

    @ApiModelProperty("主推 true主推  false不主推")
    private Boolean recommend;

    @ApiModelProperty("推荐语")
    private String recommendDescribe;

    @ApiModelProperty("是否主推:是/否")
    private String recommendStr;

    @ApiModelProperty("标签uuid列表")
    private List<String> labelUuidList;

    public void setRecommendStr(String recommendStr) {
        this.recommendStr = recommendStr;
        this.recommend = StringUtils.equals("是", recommendStr);
    }
}
